XX = g++
%.out:%.cc
	$(XX) $< -Wall -ggdb -o $@

SOURCES = $(wildcard *.cc)
OBJS = $(patsubst %.cc,%.out,$(SOURCES))

all : $(OBJS)

clean:
	rm -rf a.out *~
